Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: DialogBox cannot be used in this context; a document must be selected
~Patti Chufoolit 8.Oct.03 04:50 AM a Web browser
Domino Designer All Releases All Platforms


Dave,
You need to pass the other doc as a value to the dialogue method. Example#3 in the help show an example. You need to setup an instance of the 2nd database and pass a reference of the doc to the dialogue method. I modified it to suit your needs below

flag = notesUIWorkspace.DialogBox( form$ , [autoHorzFit] , [autoVertFit] , [noCancel] , [noNewFields] , [noFieldUpdate] , [readOnly] , [title$] ,[NOTESDOCUMENT] , [sizeToTable] , [noOkCancel] , [okCancelAtBottom] )

EXAMPLE#3 from designer help.
Click(Source as Button)
Dim db As NotesDatabase
Dim s As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim view As NotesView
Dim doc As NotesDocument
DIM db as new notesdatabase("yourserver","yourdatabase")
Set view = db.GetView( "yourview" )
Set doc = view.GetFirstDocument
Call workspace.DialogBox _
("Dialog Box", True, True, False, False, False, _
False, "Dialog Box", DOC)
Call doc.save (True, False)


Hope this helps.




DialogBox cannot be used in this co... (~Judy Asakigena... 8.Oct.03)
. . RE: DialogBox cannot be used in thi... (~Dan Brefreepul... 8.Oct.03)
. . RE: DialogBox cannot be used in thi... (~Patti Chufooli... 8.Oct.03)
. . . . RE: DialogBox cannot be used in thi... (~Judy Asakigena... 8.Oct.03)
. . . . . . RE: DialogBox cannot be used in thi... (~Patti Chufooli... 8.Oct.03)
. . . . . . . . RE: DialogBox cannot be used in thi... (~Judy Asakigena... 8.Oct.03)
. . . . . . . . . . RE: DialogBox cannot be used in thi... (~Bill Frokimari... 9.Oct.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS